// import Vue from 'vue'
// import { USER_INFO } from "@/store/mutation-types"
const getters = {
  token: state => state.user.token,
  name: state => state.user.name,
  userInfo: state => state.user.info,
  isAdmin: state => state.user.info? state.user.info.role === 1: false
}

export default getters
